﻿using Future.Shared.Core.Registrar;

namespace Futuret.Sys.Web;

/// <summary>
///     Author: Riva
///     Date: 2023/7/11 14:22
///     Description:
/// </summary>
public class DependencyRegistrar : AbstractApiDependencyRegistrar
{
    /// <summary>
    ///     构造服务
    /// </summary>
    /// <param name="Service"></param>
    public DependencyRegistrar(IServiceCollection Service) : base(Service)
    {
    }

    /// <summary>
    ///     构造中间件
    /// </summary>
    /// <param name="app"></param>
    public DependencyRegistrar(IApplicationBuilder app) : base(app)
    {
    }

    /// <summary>
    ///     新增服务
    /// </summary>
    /// <exception cref="NotImplementedException"></exception>
    public override void AddService()
    {
        //通用服务
        AddWebApiDefault();
    }

    /// <summary>
    ///     新增中间件
    /// </summary>
    /// <exception cref="NotImplementedException"></exception>
    public override void UseAdd()
    {
        //通用中间件
        UseWebApiDefault();
    }
}